function lambda = FuzzyMeasures(g)
    n = size(g,2);
    T0 = 0.0001;
    T = 1;
    
    q1 = -0.9;
    q2 = -0.9;
    
    while(abs(T) > T0)
        q1 = q2;
        
        a = 1;
        for i = 1:n
            a = a * (1 + q1 * g(i));
        end
        a = a - q1 - 1;
        
        b = 0;
        for j = 1:n
            temp = 1;
            for i = 1:n
                if i ~= j
                    temp = temp * (1 + q1 * g(i));
                end
            end
            b = b + temp * g(j);
        end
        b = b - 1;
        
        T = a / b;
        q2 = q1 - T;
    end
    
    lambda = q1;
end